﻿using System;
using System.Collections.Generic;
using System.Text;
using Stripe;

namespace Shop.Application.Payment
{
    class CreatePayment
    {
        public bool Do(long num)
        {
            try
            {
                var paymentIntents = new PaymentIntentService();
                var paymentIntent = paymentIntents.Create(new PaymentIntentCreateOptions
                {
                    Amount = num,
                    Currency = "usd",
                });
                return true;
            }
            catch
            {
                return false;
            }
        }
    }
}
